package com.neusoft.boot32.dibuy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.neusoft.boot32.dibuy.entity.BaseEntity;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author Jingdi.Duan,duanjingdi@msn.com
 * @since 2024-07-11
 */
@Getter
@Setter
@TableName("fa_role")
@Schema(name = "Role", description = "角色表")
public class Role extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "角色名称")
    @TableField("name")
    private String name;

    @Schema(description = "默认角色")
    @TableField("is_default")
    private Byte isDefault;

    @TableField("is_init")
    private Byte isInit;

    @Schema(description = "角色功能描述")
    @TableField("category")
    private String category;

    @Schema(description = "是否开启")
    @TableField("enable")
    private Byte enable;

    @Schema(description = "角色颜色")
    @TableField("color")
    private Integer color;

    public static final String NAME = "name";

    public static final String IS_DEFAULT = "is_default";

    public static final String IS_INIT = "is_init";

    public static final String CATEGORY = "category";

    public static final String ENABLE = "enable";

    public static final String COLOR = "color";
}
